package org.example.union;


/**
 * @author zhaokuii11@163.com
 * @create 2021-12-06 18:05
 * @Description
 */
public class Student extends Person {
    private String school;

    public Student(String school) {
        this.school = school;
    }

    public Student() {

    }

    @Override
    public String toString() {
        return "Student{" +
                "school='" + school + '\'' +
                '}';
    }

    public Student(Integer id, String name, Integer age, String school) {
        super(id, name, age);
        this.school = school;
    }

    public String getSchool() {
        return school;
    }

    public void setSchool(String school) {
        this.school = school;
    }
}
